import request from '../../../../../public/js/common/api/api.js';

const SaleUrl = Utils.CurDomain.SaleUrl;
const _ajaxOptions = {
    contentType: 'application/json',
    dataType: 'text',
    async: true,
    dataFilter(data, type) {
        return data;
    }
};
export default class salespricingsApi {
    //查询 DT列表
    static postSalesPricingsList(param) {
        return request.post(`${SaleUrl}/salespricings/list`, param);
    }
    //详情
    static GetSalesPricings(id) {
        return request.get(`${SaleUrl}/salespricings/${id}`);
    }
    /**
     * 提交
     * @param ids
     * @returns 
     */
    static putSubmit(id) {
        return request.put(`${SaleUrl}/salespricings/submit/${id}`, null, true, _ajaxOptions);
    }
    /**
     * 反提交
     * @param ids
     * @returns 
     */
    static putRollSubmit(id) {
        return request.put(`${SaleUrl}/salespricings/resubmit/${id}`, null, true, _ajaxOptions);
    }
    /**
     * 审核
     * @param ids
     * @returns 
     */
    static putAudit(id) {
        return request.put(`${SaleUrl}/salespricings/audit/${id}`, null, true, _ajaxOptions);
    }
    /**
     * 反审核
     * @param ids
     * @returns 
     */
    static putRollAudit(id) {
        return request.put(`${SaleUrl}/salespricings/reaudit/${id}`, null, true, _ajaxOptions);
    }
    // 删除
    static DelSalesPricings(id) {
        return request.delete(`${SaleUrl}/salespricings/${id}`, null, true, _ajaxOptions);
    }

}